package cn.alm.xccontent.controller;

import cn.alm.xccontent.common.CommonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("hello")
public class HelloController {

    @GetMapping("greet")
    public CommonResult greet() {
        CommonResult cr = new CommonResult();
        cr.ok("Hello!");
        return cr;
    }
}
